#@layout()
#define script()
<script>
</script>
#end

#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            版本管理
            <small>Verison Management</small>
        </h1>
    </section>


    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3>稿件：《#(article.title)》修订版本</h3>
                        <a>由<Stong>#(userKits.getNicknameByUserId(article.user_id))</Stong>于#(article.created)创建</a>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body no-padding">
                        <tbody>
                        <tr>
                            #for(articleversion : articleversions)
                            <th><a class="btn info" href="#(CPATH)/admin/article/lversion?pid=#(article.id)&vid=#(for.index)">版本#(for.count)</a></th>
                            #end
                        </tr>
                        </tbody>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="row">
                                    <div class="col-sm-6" style="height:400px;overflow:scroll;">
                                       #(oldversion.content)
                                    </div>
                                    <div class="col-sm-6" style="height:400px;overflow:scroll;">
                                        #(nowversion.content)
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.box -->
            </div>
        </div>

    </section>


</div>
#end
